import request from '@/utils/request'

// 查询班前教育列表
export function listEducate(query) {
  return request({
    url: '/educate/educate/list',
    method: 'get',
    params: query
  })
}

// 查询班前教育详细
export function getEducate(id) {
  return request({
    url: '/educate/educate/' + id,
    method: 'get'
  })
}

// 新增班前教育
export function addEducate(data) {
  return request({
    url: '/educate/educate',
    method: 'post',
    data: data
  })
}

// 修改班前教育
export function updateEducate(data) {
  return request({
    url: '/educate/educate',
    method: 'put',
    data: data
  })
}

// 删除班前教育
export function delEducate(id) {
  return request({
    url: '/educate/educate/' + id,
    method: 'delete'
  })
}

//作业班组下拉
export function AddlistEducate(query) {
  return request({
    url: '/cooperator/class/list',
    method: 'get',
    params: query
  })
}